package com.yfree.model

open class YBaseModel

class YModel<T : YBaseModel> {
    var root = YRootModel<T>("", "", listOf())

    constructor(root: YRootModel<T>) {
        this.root = root
    }
}

class YRootModel<T : YBaseModel> {
    var code = ""
    var message = ""
    var result = listOf<T>()

    constructor(code: String, message: String, result: List<T>) {
        this.code = code
        this.message = message
        this.result = result
    }
}
